﻿
@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<style>
    .form .formValue input.form-control {
        height: 34px;
        line-height: 34px;
    }

    .form-control {
        padding: 0px;
    }

    .autocomplete-suggestions {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        border: 1px solid #999;
        background: #FFF;
        cursor: default;
        overflow: auto;
        -webkit-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64);
        -moz-box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64);
        box-shadow: 1px 4px 3px rgba(50, 50, 50, 0.64);
    }

    .autocomplete-selected {
        background: #F0F0F0;
    }

    .autocomplete-suggestion {
        padding: 2px 5px;
        white-space: nowrap;
        overflow: hidden;
    }

    .autocomplete-no-suggestion {
        padding: 2px 5px;
    }

    ul {
        list-style: none;
        float: left;
        -webkit-padding-start: 10px;
    }

        ul li {
            list-style-type: none;
            float: left;
        }

    .active {
        border: 1px solid #1ABC9C;
    }

        .active:hover {
            background-color: #1ABC9C;
            color: #fff;
            text-decoration: none;
        }   
</style>
<script>
    var DemandId = "";    
    var F_ClientId = "";
    var ProjectId = "";
    var ContactId = "";
    var F_BrandId = "";
    var resultData = {};
    $(function () {
        DemandId = $.request("DemandId");
        F_ClientId = $.request("F_ClientId");
        $("#F_ActivityCityId").select2({ multiple: true });
        GetInit();
        GetDetail();
        //BrandsChange(F_ClientId);
        //ProjectChange(F_ClientId);
        //ContactsChange(F_ClientId);
    });

    var old_clientName;
    var old_brand;
    var old_project;
    var old_contact;

    function GetDetail() {
        $.ajax({
            url: "/ClientManager/ClientInfos/GetProjectInfoDetail?DemandId=" + DemandId +"",
            dataType: "json",
            async: false,
            success: function (data) {
                if (data != null) {
                    $("#hd_F_BrandId").val(data["F_BrandId"]);
                    $("#hd_F_ProjectId").val(data["F_ProjectId"]); 
                    $("#hd_F_Contact").val(data["contactId"]);                               
                    //$("#F_MappingId").attr("disabled", "disabled");
                    //$("#F_MappingId").css("background-color", "#ddd");                   
                    //$("#F_ZkIndustryId").attr("disabled", "disabled");
                    //$("#F_ZkIndustryId").css("background-color", "#ddd");  

                    if ($("#F_BrandId").val().length>0) {
                        $("#F_BrandId").attr("disabled", "disabled");
                        $("#F_BrandId").css("background-color", "#ddd");                       
                    }
                    if ($("#F_ProjectId").val().length > 0) {
                        $("#F_ProjectId").attr("disabled", "disabled");
                        $("#F_ProjectId").css("background-color", "#ddd");
                    }                                       

                    $("#F_Source").val(data["F_Source"]);
                    $("#F_ActivityTheme").val(data["F_ActivityTheme"]);
                    //for (var i = 0; i < $("#F_ActivityType")[0].children.length; i++) {
                    //    if ($("#F_ActivityType")[0].children[i])
                    //}
                    $("#F_ActivityType").val(data["F_ActivityType"]);
                    $("#F_DemandCash").val(data["F_DemandCash"]);
                    $("#F_BuildDate").val(data["F_BuildDate"]);
                    $("#F_ActivityStartDate").val(data["F_ActivityStartDate"]);
                    $("#F_ActivityEndDate").val(data["F_ActivityEndDate"]);
                    if (data["F_ActivityCityId"] != null) {
                        $("#F_ActivityCityId").val(data["F_ActivityCityId"].split(',')).trigger('change');
                    }
                    
                    $("#F_SiteType").val(data["F_SiteType"]);
                    $("#F_SiteArea").val(data["F_SiteArea"]);
                    $("#F_PersionNumber").val(data["F_PersionNumber"]);
                    $("#F_Height").val(data["F_Height"]);
                    $("#F_Note").val(data["F_Note"]);
                    $("#F_Intention").val(data["F_Intention"]);
                    $("#F_ZkIndustryId").val(data["F_ZkIndustryId"]);
                    if (data["F_ClientType"] == "2") {
                        $("#F_MappingId").val(data["MappingName"]);
                        $("#hd_F_MappingId").val(data["F_MappingId"]);                        
                        old_clientName = data["MappingName"];
                    } else if (data["F_ClientType"] == "1"){
                        $("#F_MappingId").attr("disabled", "disabled");
                        $("#F_MappingId").css("background-color", "#ddd");                   
                        $("#F_ZkIndustryId").attr("disabled", "disabled");
                        $("#F_ZkIndustryId").css("background-color", "#ddd");     
                    }

                    $("#F_BrandId").val(data["F_BrandName"]);
                    old_brand = data["F_BrandName"];
                    $("#hd_F_BrandId").val(data["F_BrandId"]);
                    old_project = data["F_ProjectName"];
                    $("#F_ProjectId").val(data["F_ProjectName"]);
                    $("#hd_F_ProjectId").val(data["F_Id"]);

                    old_contact = data["F_Contact"];
                    $("#F_Contact").val(data["F_Contact"]);
                    $("#hd_F_Contact").val(data["contactId"]);
                    $("#F_DepartmentId").val(data["F_DepartmentId"]);
                    $("#F_PositionId").val(data["F_PositionId"]);
                    $("input[name='F_Sex'][value=" + data["F_Sex"] + "]").attr("checked", true);
                    $("#F_Phone").val(data["F_Phone"]);
                    $("#F_Telephone").val(data["F_Telephone"]);
                    $("#F_Mail").val(data["F_Mail"]);
                    
                    
                }
            }, error: function (XMLHttpRequest, textStatus, errorThrown) {
            }
        });
    }

    function ContactsChange(f_fartherId) {
        var contacts = [];
        var sitecontacts = resultData.Contacts;
        for (var i = 0; i < sitecontacts.length; i++) {
            if (sitecontacts[i].F_ClientId == f_fartherId) {
                contacts.push({ value: sitecontacts[i].F_Contact, data: sitecontacts[i].F_Id });
            }
        }
        $("#F_Contact").autocomplete({
            lookup: contacts,
            onSelect: function (suggestion) {
                $("#hd_F_Contact").val(suggestion.data);
                ContactInfo(suggestion.data);
            }
        });
    }

    function ContactInfo(contactId) {
        $.ajax({
            url: "/ClientManager/ClientInfos/GetContactInfo?F_ContactId=" + contactId,
            dataType: "json",
            async: false,
            success: function (data) {
                if (data != null) {
                    $("#F_DepartmentId").val(data["F_DepartmentId"]);
                    $("#F_PositionId").val(data["F_PositionId"]);
                    $("#F_Phone").val(data["F_Phone"]);
                    $("#F_Telephone").val(data["F_Telephone"]);
                    $("#F_Mail").val(data["F_Mail"]);
                    $("input[name='F_Sex'][value=" + data["F_Sex"] + "]").attr("checked", true);
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) { }
        });
    }

    function BrandsChange(f_fartherId) {
        var Brands = [];
        var siteBrands = resultData.Brands;
        for (var i = 0; i < siteBrands.length; i++) {
            if (siteBrands[i].F_ClientId == f_fartherId) {
                Brands.push({ value: siteBrands[i].F_BrandName, data: siteBrands[i].F_Id });
            }
        }

        $("#F_BrandId").autocomplete({
            lookup: Brands,
            onSelect: function (suggestion) {
                $("#hd_F_BrandId").val(suggestion.data);
            }
        });
    }

    function ProjectChange(f_fartherId) {
        var Projects = [];
        var siteProjects = resultData.Projects;
        for (var i = 0; i < siteProjects.length; i++) {
            if (siteProjects[i].F_ClientId == f_fartherId) {
                Projects.push({ value: siteProjects[i].F_ProjectName, data: siteProjects[i].F_Id });
            }
        }

        $("#F_ProjectId").autocomplete({
            lookup: Projects,
            onSelect: function (suggestion) {
                $("#hd_F_ProjectId").val(suggestion.data);
            }
        });
    }

    function GetInit() {
        resultData = getCache("CLIENT_EDITDEMAND");
        if (!resultData || resultData.length <= 0) {
            $.ajax({
                url: "/ClientManager/ClientInfos/GetItemListJson",
                dataType: "json",
                async: false,
                success: function (data) {
                    resultData = data;
                    InitControl();
                    setCache("CLIENT_EDITDEMAND", data);
                }, error: function (XMLHttpRequest, textStatus, errorThrown) {
                }
            });
        } else {
            InitControl();
        }
    }

    function InitControl() {
        var F_DepartmentId = resultData.F_DepartmentId;
        for (var i = 0; i < F_DepartmentId.length; i++) {
            $("#F_DepartmentId").append("<option value='" + F_DepartmentId[i].F_ItemCode + "'>" + F_DepartmentId[i].F_ItemName + "</option>");
        }

        var F_PositionId = resultData.F_PositionId;
        for (var i = 0; i < F_PositionId.length; i++) {
            $("#F_PositionId").append("<option value='" + F_PositionId[i].F_ItemCode + "'>" + F_PositionId[i].F_ItemName + "</option>");
        }

        var F_ActivityType = resultData.F_ActivityType;
        var First_ActivityType = resultData.First_ActivityType;
        var strHtml = "";
        for (var j = 0; j < First_ActivityType.length; j++) {
            strHtml += "<option style=\"font-weight:bold;\" value='" + First_ActivityType[j].F_ItemCode + "'>" + First_ActivityType[j]["F_ItemName"] + "</option>";
            for (var i = 0; i < F_ActivityType.length; i++) {
                if (First_ActivityType[j].F_ItemCode == F_ActivityType[i].F_Description) {
                    strHtml += "<option value='" + F_ActivityType[i].F_ItemCode + "'>" + "&nbsp;&nbsp;&nbsp;&nbsp;" + F_ActivityType[i].F_ItemName + "</option>";
                }
            }
            //strHtml += "</option>"; 
        }
        $("#F_ActivityType").append(strHtml);

        var F_ActivityCityId = resultData.F_CityId;
        for (var i = 0; i < F_ActivityCityId.length; i++) {
            $("#F_ActivityCityId").append("<option value='" + F_ActivityCityId[i].F_EnCode + "'>" + F_ActivityCityId[i].F_FullName + "</option>");
        }

        var F_SiteType = resultData.F_SiteType;
        for (var i = 0; i < F_SiteType.length; i++) {
            $("#F_SiteType").append("<option value='" + F_SiteType[i].F_ItemCode + "'>" + F_SiteType[i].F_ItemName + "</option>");
        }

        var F_CityId = resultData.F_CityId;
        for (var i = 0; i < F_CityId.length; i++) {
            $("#F_CityId").append("<option value='" + F_CityId[i].F_EnCode + "'>" + F_CityId[i].F_FullName + "</option>");
        } 

        var F_IndustryId = resultData.F_IndustryId;
        for (var i = 0; i < F_IndustryId.length; i++) {
            $("#F_ZkIndustryId").append("<option value='" + F_IndustryId[i].F_ItemCode + "'>" + F_IndustryId[i].F_ItemName + "</option>");
        }

        var Clients = [];
        var SiteClients = resultData.SiteClients;
        for (var i = 0; i < SiteClients.length; i++) {
            Clients.push({ value: SiteClients[i].F_ClientName, data: SiteClients[i].F_Id });
        }

        $("#F_MappingId").autocomplete({
            lookup: Clients,
            onSelect: function (suggestion) {
                $("#hd_F_MappingId").val(suggestion.data);
            }
        });
    }    

    function submitForm() {
        if (!$('#projectForm').formValid()) {
            return false;
        }
        var F_Source = $("#F_Source").val();
        var F_ActivityTheme = $("#F_ActivityTheme").val();
        var F_ActivityType = $("#F_ActivityType").val();
        var F_DemandCash = $("#F_DemandCash").val();
        var F_ActivityStartDate = $("#F_ActivityStartDate").val();
        var F_ActivityEndDate = $("#F_ActivityEndDate").val();
        var F_ACityIdList = $("#F_ActivityCityId").select2("data");
        var F_ActivityCityId = "";
        for (var i = 0; i < F_ACityIdList.length; i++) {
            if (i == F_ACityIdList.length - 1) {
                F_ActivityCityId += F_ACityIdList[i].id;
            } else {
                F_ActivityCityId += F_ACityIdList[i].id + ",";
            }
        }
        var F_SiteType = $("#F_SiteType").val();
        var F_SiteArea = $("#F_SiteArea").val();
        var F_PersionNumber = $("#F_PersionNumber").val();
        var F_Height = $("#F_Height").val();
        var F_Note = $("#F_Note").val();
        var F_Intention = $("#F_Intention").val();

        var hd_F_MappingId = $("#hd_F_MappingId").val();
        var txtF_MappingId = $("#F_MappingId").val();
        var F_MappingId = "";
        var F_MappingName = "";
        var F_ClientType = $.request("F_ClientType");

        var F_IndustryId = "";
        if (F_ClientType == "1") {
            F_MappingId = $.request("F_ClientName");
        } else {
            F_MappingId = hd_F_MappingId;
            F_MappingName = txtF_MappingId;
            F_IndustryId = $("#F_ZkIndustryId").val();
        }

        var F_BrandId = $("#hd_F_BrandId").val();
        var F_BrandName = $("#F_BrandId").val();        

        var F_ProjectId = $("#hd_F_ProjectId").val();
        var F_ProjectName = $("#F_ProjectId").val();        

        var F_ContactId = $("#hd_F_Contact").val();
        var F_Contact = $("#F_Contact").val();       

        var F_DepartmentId = $("#F_DepartmentId").val();
        var F_PositionId = $("#F_PositionId").val();
        var F_Sex = $("input[name='F_Sex']:checked").val() || "";
        var F_Phone = $("#F_Phone").val();
        var F_Telephone = $("#F_Telephone").val();
        var F_Mail = $("#F_Mail").val();    
        var F_BuildDate = $("#F_BuildDate").val();
        var F_ZkIndustryId = $("#F_ZkIndustryId").val();  
        $.ajax({
            url: "/ClientManager/ClientInfos/SubmitProjectForm",
            data: {
                DemandId: DemandId,
                F_ClientId: F_ClientId,
                F_ClientType: F_ClientType,
                F_Source: F_Source,
                F_ActivityTheme: F_ActivityTheme,
                F_ActivityType: F_ActivityType,
                F_DemandCash: F_DemandCash,
                F_ActivityStartDate: F_ActivityStartDate,
                F_ActivityEndDate: F_ActivityEndDate,
                F_ActivityCityId: F_ActivityCityId,
                F_SiteType: F_SiteType,
                F_SiteArea: F_SiteArea,
                F_PersionNumber: F_PersionNumber,
                F_Height: F_Height,
                F_Note: F_Note,
                F_Intention: F_Intention,
                F_MappingId: F_MappingId,
                MappingName: F_MappingName,
                F_BrandId: F_BrandId,
                F_BrandName: F_BrandName,
                F_ProjectId: F_ProjectId,
                F_ProjectName: F_ProjectName,
                contactId: F_ContactId,
                F_Contact: F_Contact,
                F_DepartmentId: F_DepartmentId,
                F_PositionId: F_PositionId,
                F_Sex: F_Sex,
                F_Phone: F_Phone,
                F_Telephone: F_Telephone,
                F_Mail: F_Mail,
                F_IndustryId: F_IndustryId, F_BuildDate: F_BuildDate, F_ZkIndustryId: F_ZkIndustryId
            },
            dataType: "json",
            type: 'POST',
            async: false,
            success: function (data) {
                if (data != null) {
                    $.currentWindow().$("#gridListprojectRecord").trigger("reloadGrid");
                    if (F_Source == "0" || F_Source == "2" || F_Source == "3" || F_Source == "4") {
                        if (data["F_FlowUserId"] == null) {
                            $.modalOpen({
                                id: "Share",
                                title: "分配需求单",
                                url: "/ClientManager/DemandInfos/Share?F_Id=" + DemandId + "",
                                width: "1200px",
                                height: "900px",
                                callBack: function (iframeId) {
                                    if (top.frames[iframeId].submitForm() != false) {
                                        if ($("#editForm33") != null) {
                                            $.modalFrameClose('editForm33');
                                        }
                                        if ($("#editDemandForm2") != null) {
                                            $.modalFrameClose('editDemandForm2');
                                        }
                                    }
                                }
                            });

                        } else {
                            layer.confirm('需要跳转到有效需求窗口吗？', {
                                btn: ['是', '否']
                            }
                            , function () {                                  
                                    $.addTab({
                                        href: '/OrderFlowManage/ClientOrder/Details?pageType=all&orderid=' + data["F_Id"] + '&type=' + data["F_OrderState"],
                                        text: '需求流转',
                                        id: data["F_Id"],
                                        index: 999
                                    });
                                    if ($("#editForm33") != null) {
                                        $.modalFrameClose('editForm33');
                                    }
                                    if ($("#editDemandForm2") != null) {
                                        $.modalFrameClose('editDemandForm2');
                                    }
                            }, function() {
                                    if ($("#editForm33") != null) {
                                        $.modalFrameClose('editForm33');
                                    }
                                    if ($("#editDemandForm2") != null) {
                                        $.modalFrameClose('editDemandForm2');
                                    }
                                }
                            );                           
                        }
                    } else {
                        layer.confirm('需要跳转到有效需求窗口吗？', {
                            btn: ['是', '否']
                        }
                        , function () {
                                $.addTab({
                                    href: '/OrderFlowManage/ClientOrder/Details?pageType=all&orderid=' + data["F_Id"] + '&type=' + data["F_OrderState"],
                                    text: '需求流转',
                                    id: data["F_Id"],
                                    index: 999
                                });
                                if ($("#editForm33") != null) {
                                    $.modalFrameClose('editForm33');
                                }
                                if ($("#editDemandForm2") != null) {
                                    $.modalFrameClose('editDemandForm2');
                                }
                        }, function () {
                                if ($("#editForm33") != null) {
                                    $.modalFrameClose('editForm33');
                                }
                                if ($("#editDemandForm2") != null) {
                                    $.modalFrameClose('editDemandForm2');
                                }
                            }
                        );                        
                    }                    
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) { }
        });
    }
</script>
<div id="ProjectsDetail">
    <form id="projectForm">
        <table class="form">
            <tr>
                <td colspan="6" class="interval">需求信息</td>
            </tr>
            <tr>
                <td colspan="6">
                    <table class="form">
                        <tr>
                            <td class="formTitle">需求来源</td>
                            <td class="formValue">
                                <select id="F_Source" name="F_Source" disabled="disabled" class="form-control required">
                                    <option value="">==请选择需求来源==</option>
                                    <option value="0">400电话</option>
                                    <option value="1">销售自拓</option>
                                    <option value="2">网站订单</option>
                                    <option value="3">小程序订单</option>
                                    <option value="4">App订单</option>
                                </select>
                            </td>
                            <td class="formTitle">所属行业</td>
                            <td class="formValue">
                                <select id="F_ZkIndustryId" name="F_ZkIndustryId" class="form-control">
                                    <option value="">==请选择行业==</option>
                                </select>
                            </td>
                            <td class="formTitle">活动主题</td>
                            <td class="formValue">
                                <input type="text" id="F_ActivityTheme" name="F_ActivityTheme" class="form-control required" placeholder="请输入活动主题" />
                            </td>                            
                        </tr>
                        <tr>
                            <td class="formTitle">活动类型</td>
                            <td class="formValue">
                                <select id="F_ActivityType" name="F_ActivityType" class="form-control">
                                    <option value="">==请选择活动类型==</option>
                                </select>
                            </td>
                            <td class="formTitle">搭建日期</td>
                            <td class="formValue">
                                <input type="text" id="F_BuildDate" name="F_BuildDate" class="form-control input-wdatepicker" onfocus="WdatePicker()" placeholder="请输入活动搭建日期" />
                            </td>
                            <td class="formTitle">活动开始日期</td>
                            <td class="formValue">
                                <input type="text" id="F_ActivityStartDate" name="F_ActivityStartDate" class="form-control input-wdatepicker required" onfocus="WdatePicker()" placeholder="请输入活动开始时间" />
                            </td>                            
                        </tr>
                        <tr>
                            <td class="formTitle">活动结束日期</td>
                            <td class="formValue">
                                <input type="text" id="F_ActivityEndDate" name="F_ActivityEndDate" class="form-control input-wdatepicker required" onfocus="WdatePicker()" placeholder="请输入活动结束时间" />
                            </td>
                            <td class="formTitle">预算金额</td>
                            <td class="formValue">
                                <input type="text" id="F_DemandCash" name="F_DemandCash" class="form-control required number" placeholder="请输入预算金额" />
                            </td>
                            <td class="formTitle">活动城市</td>
                            <td class="formValue">
                                <select id="F_ActivityCityId" name="F_ActivityCityId" class="form-control required"></select>
                            </td>                                                      
                        </tr>
                        <tr>
                            <td class="formTitle">场地类型</td>
                            <td class="formValue">
                                <select id="F_SiteType" name="F_SiteType" class="form-control required">
                                    <option value="">==请选择场地类型==</option>
                                </select>
                            </td>  
                            <td class="formTitle">活动人数</td>
                            <td class="formValue">
                                <input type="text" id="F_PersionNumber" name="F_PersionNumber" class="form-control number" placeholder="请输入活动人数" />
                            </td>
                            <td class="formTitle">场地面积(㎡)</td>
                            <td class="formValue">
                                <input type="text" id="F_SiteArea" name="F_SiteArea" class="form-control number" placeholder="请输入场地面积" />
                            </td>                                                        
                        </tr>
                        <tr>
                            <td class="formTitle">层高(m)</td>
                            <td class="formValue">
                                <input type="text" id="F_Height" name="F_Height" class="form-control number" placeholder="请输入层高" />
                            </td>
                            <td class="formTitle"></td>
                            <td class="formValue"></td>
                            <td class="formTitle"></td>
                            <td class="formValue"></td>
                        </tr>
                        <tr>
                            <td class="formTitle">意向场地</td>
                            <td class="formValue" colspan="5">
                                <textarea rows="2" id="F_Intention" name="F_Intention" class="form-control" placeholder="请输入意向场地" style="width:99%;"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td class="formTitle">备注</td>
                            <td class="formValue" colspan="5">
                                <textarea rows="3" id="F_Note" name="F_Note" class="form-control" placeholder="请输入备注信息" style="width:99%;"></textarea>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="6" class="interval">品牌项目组信息</td>                
            </tr>
            <tr>
                <td colspan="6">
                    <table class="form">
                        <tr>
                            <td class="formTitle">直客名称</td>
                            <td class="formValue">
                                <div class="input-group" style="width:100%;">
                                    <input type="text" id="F_MappingId" class="form-control" placeholder="请输入直客名称" />
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span>
                                    <input type="hidden" name="hd_F_MappingId" id="hd_F_MappingId" value="" />
                                </div>
                            </td>                            
                            <td class="formTitle">品牌名称</td>
                            <td class="formValue">
                                <div class="input-group" style="width:100%;">
                                    <input type="text" id="F_BrandId" class="form-control" placeholder="请输入品牌名称" />
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span>
                                    <input type="hidden" name="hd_F_BrandId" id="hd_F_BrandId" value="" />
                                </div>
                            </td>  
                            <td class="formTitle">所属项目组</td>
                            <td class="formValue">
                                <div class="input-group" style="width:100%;">
                                    <input type="text" id="F_ProjectId" class="form-control" placeholder="请输入项目组" />
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span>
                                    <input type="hidden" name="hd_F_ProjectId" id="hd_F_ProjectId" value="" />
                                </div>
                            </td>
                        </tr>
                        <tr>                            
                            <td class="formTitle">联系人</td>
                            <td class="formValue">
                                <div class="input-group" style="width:100%;">
                                    <input type="text" id="F_Contact" name="F_Contact" class="form-control required" placeholder="请输入联系人" />
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span>
                                    <input type="hidden" name="hd_F_Contact" id="hd_F_Contact" value="" />
                                </div>
                            </td>
                            <td class="formTitle">所属部门</td>
                            <td class="formValue">
                                <select id="F_DepartmentId" name="F_DepartmentId" class="form-control">
                                    <option value="">==请选择部门==</option>
                                </select>
                            </td>
                            <td class="formTitle">所属职位</td>
                            <td class="formValue">
                                <select id="F_PositionId" name="F_PositionId" class="form-control">
                                    <option value="">==请选择职位==</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            
                            <td class="formTitle">性别</td>
                            <td class="formValue">
                                <input type="radio" name="F_Sex" value="1" />男<input type="radio" name="F_Sex" value="0" />女
                            </td>
                            <td class="formTitle">手机号码</td>
                            <td class="formValue">
                                <input type="text" id="F_Phone" name="F_Phone" class="form-control required isMobile" placeholder="请输入手机号" />
                            </td>    
                            <td class="formTitle">公司座机</td>
                            <td class="formValue">
                                <input type="text" id="F_Telephone" name="F_Telephone" class="form-control isPhone" placeholder="请输入公司座机" />
                            </td>
                        </tr>
                        <tr>                            
                            <td class="formTitle">Email</td>
                            <td class="formValue">
                                <input type="text" id="F_Mail" name="F_Mail" class="form-control email" placeholder="请输入Email" />
                            </td>
                            <td class="formTitle"></td>
                            <td class="formValue"></td> 
                            <td class="formTitle"></td>
                            <td class="formValue"></td>                           
                        </tr>
                    </table>
                </td>
            </tr>         
        </table>
    </form>
</div>
